import request from '@/utils/request'

// 检测企业是否已付款
export function checkPayment(rechargeId) {
  return request({
    url: '/user/recharge/checkPayment',
    method: 'post',
    params: { rechargeId: rechargeId }
  })
}
// 充值扫码
export function paymentAppendScan(params) {
  return request({
    url: '/user/recharge/paymentAppendScan',
    method: 'post',
    params
  })
}
// 提现申请
export function addEnterpriseTakeOut(enterpriseId, amount) {
  const param = {
    enterpriseId: enterpriseId,
    amount: amount
  }
  return request({
    url: '/user/takeOut/addEnterpriseTakeOut',
    method: 'get',
    params: param
  })
}

// 企业收支明细分页
export function pagingIncome(qurey) {
  return request({
    url: '/user/enterpriseIncomeExpense/paging',
    method: 'get',
    params: qurey
  })
}
